﻿package net.fishbowlmedia.scroller3d.view 
{
	import net.fishbowlmedia.scroller3d.control.VanishingCoverControl;
	
	/**
	* ...
	* @author Tom Lauck
	*/
	public class VanishingCoverView extends Object 
	{
		private var _control:VanishingCoverControl;		
		
		public function initControl(stageWidth:int, stageHeight:int):void
		{
			control = new VanishingCoverControl();
			control.tweenTime = .05;
			control.tweenTransition = "easeInOutCubic"; 
			
			control.startingCoverId = 0;
			control.selectedCoverAngle = 35.5;
			control.selectedCoverOffest = -10;
			control.selectedCoverScale = .08;
			control.coverAngle = 0;	
			
			control.totalPlanes = 100;
			control.seperation = 260;
			control.offset = 260;
			
			control.sceneWidth = stageWidth;
			control.sceneHeight = stageHeight;
		}
		public function sceneSettings(camera:*, scene:*):void 
		{
			control.camera = camera;
			control.scene = scene;
			
			control.camera.x = -310;
			control.camera.y = -5;
			control.camera.zoom = 1.75;
			control.camera.focus = 500;			
			control.camera.z = -450;
		}
		
		public function get control():VanishingCoverControl { return _control; }
		
		public function set control(value:VanishingCoverControl):void 
		{
			_control = value;
		}
		
	}
	
}